# encoding=utf-8


class Sentence(object):

    def __init__(self, sentence, seg, s_id=0):
        self.s_id = s_id
        self.origin_sentence = sentence
        self.cut_sentence = self.cut(seg)
        self.score = None

    # 对句子分词
    def cut(self, seg):
        return seg.cut_for_search(self.origin_sentence)

    # 获取切词后的词列表
    def get_cut_sentence(self):
        return self.cut_sentence

    # 获取原句子
    def get_origin_sentence(self):
        return self.origin_sentence

    # 设置该句子得分
    def set_score(self, score):
        self.score = score
